import Vue from 'vue'
import VueRouter from 'vue-router'
import IndexLayout from '../views/Index/IndexLayOut.vue'

Vue.use(VueRouter)

const routes = [
  {
    path:"/",
    name:'IndexLayOut',
    component:IndexLayout
  },
  {
    path:"/DetailsLayOut",
    name:'DetailsLayOut',
    component: () => import('../views/detailsPage/DetailsLayOut.vue')
  },
  //  搜索跳转
  {
    path:"/SharePage",
    name:'SharePage',
    component: () => import('../views/detailsPage/SharePage.vue')
    
  },
  {
    path:"/login",
    name:'login',
    component: () => import('../views/login/LoginLay.vue')
  },
  {
    path:"/GoSearch",
    name:"GoSearch",
    component:() => import('../views/login/components/GoSearch.vue')
  }
  


]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
